package org.jeecg.entity.basedata;

import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecg.modules.system.entity.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;

/**
 * @Description: 项目
 * @Author: jeecg-boot
 * @Date:   2019-06-25
 * @Version: V1.0
 */
@Data
@TableName("base_project")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="base_project对象", description="项目")
public class BaseProject  extends BaseEntity {

	/**项目id*/
	@TableId(type = IdType.ID_WORKER_STR)
	@ApiModelProperty(value = "项目id")
	private java.lang.String id;
	/**项目编号*/
	@Excel(name = "项目编号", width = 15)
	@ApiModelProperty(value = "项目编号")
	private java.lang.String code;
	/**项目名称*/
	@Excel(name = "项目名称", width = 15)
	@ApiModelProperty(value = "项目名称")
	private java.lang.String name;
	/**所属区域*/
	@Excel(name = "所属区域", width = 15)
	@ApiModelProperty(value = "所属区域")
	private java.lang.String areaId;
	/**项目类型*/
	@Excel(name = "项目类型", width = 15)
	@ApiModelProperty(value = "项目类型")
	@Dict(dicCode = "project_type")
	private java.lang.String projectType;
	/**机构ID*/
	@Excel(name = "机构ID", width = 15)
	@ApiModelProperty(value = "机构ID")
	private java.lang.String departId;
	/**不可用标识*/
	@Excel(name = "不可用标识", width = 15)
	@ApiModelProperty(value = "不可用标识")
	@Dict(dicCode = "disable_flag")
	private java.lang.String disableFlag;
	/**删除标识*/
	@TableLogic
	@Excel(name = "删除标识", width = 15)
	@ApiModelProperty(value = "删除标识")
	@Dict(dicCode = "del_flag")
	private java.lang.String delFlag;
	/**创建人*/
	@Excel(name = "创建人", width = 15)
	@ApiModelProperty(value = "创建人")
	private java.lang.String createBy;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "创建时间")
	private java.util.Date createTime;
	/**更新人*/
	@Excel(name = "更新人", width = 15)
	@ApiModelProperty(value = "更新人")
	private java.lang.String updateBy;
	/**更新时间*/
	@Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "更新时间")
	private java.util.Date updateTime;

	@TableField(exist = false)
	private String roomNum; //户数
	@TableField(exist = false)
	private String cusNum; //业主数
	@TableField(exist = false)
	private String buildArea; //建筑面积
	@TableField(exist = false)
	private String tenantId;
	@TableField(exist = false)
	private List<String> projectIds;

}
